/*
 * SpringPatrolCommand.cpp
 *
 *  Created on: Nov 20, 2008
 *      Author: Ryan
 */

#include "SpringPatrolCommand.h"

SpringPatrolCommand::SpringPatrolCommand( const OOInterface::Point3f& loc  ):
	OOInterface::PatrolCommand( loc )
{
}

SpringPatrolCommand::~SpringPatrolCommand()
{
}

::Command* SpringPatrolCommand::getCommand() const
{
	::Command* cmd = new ::Command;
	cmd->id = CMD_PATROL;
	cmd->params.push_back( getPatrolPath().getX() * 8); //Times by eight to convert to Spring's coordinate system
	cmd->params.push_back( getPatrolPath().getY() );
	cmd->params.push_back( getPatrolPath().getZ() * 8);

	return cmd;
}
